	$(function() {
		var availableTags = "";//availableTags is defined in allrecords.js
		$( "#key" ).autocomplete({
			source: availableTags 
		});
	});
	
	function go(e) {
		var key = document.getElementById("key");
		var keyCode = 0;
		if (!e) e = window.event;
		if (e.keyCode) 
		  	keyCode = e.keyCode;
	  	else 
	  		keyCode = e.which;
	  	if(keyCode==13) search();
	  	
	}
	var search = function(){
		var key = document.getElementById("key");
		window.location="index!search?key="+key.value;
	};